package com.zoranjoka.chordis.data;

import java.util.ArrayList;
import java.util.List;

import com.zoranjoka.chordis.beans.AlbumBean;
import com.zoranjoka.chordis.beans.ArtistBean;
import com.zoranjoka.chordis.beans.SongBean;

public class MockDataSong implements IDataSong {

	private ArtistBean artist1;
	private ArtistBean artist2;
	private AlbumBean album1A1;
	private AlbumBean album2A1;
	private AlbumBean album1A2;
	
	private List<SongBean> songs = new ArrayList<SongBean>();
	
//	public MockDataSong(){
//		artist1 = new ArtistBean();
//		artist2 = new ArtistBean("2", "Queens of the stone age");
//		album1A1 = new AlbumBean();
//		album2A1 = new AlbumBean();
//		addSongBean(new SongBean("1",artist1,album1A1,"Stagger Lee"));
//		addSongBean(new SongBean("2",artist1,album2A1,"Death is not the end"));
//		addSongBean(new SongBean("3",artist2,album1A2,"Rated R"));
//	}
	
	public ArrayList<SongBean> getAllSongs() {
		return (ArrayList<SongBean>) songs;
	}

	public SongBean getSongByName(String name) {
		for (SongBean sb:songs){
			if (sb.getName().equals(name))
				return sb;
		}
		return null;
	}

	public void addSongBean(SongBean sb) {
		songs.add(sb);
	}

}
